package com.whjz.dcfs.ggts.struts.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.whjz.dcfs.ggts.dao.IDcfsTsclTsjcsjJbxxDAO;
import com.whjz.dcfs.ggts.model.DcfsTsclTsjcsjJbxx;
import com.whjz.dcfs.jzxx.dao.IDcfsHjjcdJbxxDAO;
import com.whjz.dcfs.jzxx.model.DcfsHjjcdJbxx;
import com.whjz.dcfs.util.AjaxUtil;
import com.whjz.dcfs.util.BaseAction;



public class JcjgAction extends BaseAction{

	private static final long serialVersionUID = 1L;
	
	private DcfsTsclTsjcsjJbxx dcfsTsclTsjcsjJbxx;
	@Autowired
	private IDcfsTsclTsjcsjJbxxDAO dcfsTsclTsjcsjJbxxDAO;
	@Autowired
	private IDcfsHjjcdJbxxDAO dcfsHjjcdJbxxDAO;
	
	private DcfsHjjcdJbxx dcfsHjjcdJbxx;
  
	
	public void getTsclJbxx() throws Exception{
		try{
			List<DcfsTsclTsjcsjJbxx> list=dcfsTsclTsjcsjJbxxDAO.getDcfsTsclTsjcsjJbxxListByCond(dcfsTsclTsjcsjJbxx);
			AjaxUtil.outputJSONResult(list, getHttpServletResponse());
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	
	public void getJcsj() throws Exception{
		try{
			List<DcfsHjjcdJbxx> list=dcfsHjjcdJbxxDAO.getDcfsHjjcdJbxxByCond_timeNew(dcfsHjjcdJbxx);
			AjaxUtil.outputJSONResult(list, getHttpServletResponse());
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	
	public DcfsHjjcdJbxx getDcfsHjjcdJbxx() {
		return dcfsHjjcdJbxx;
	}
	
	public void setDcfsHjjcdJbxx(DcfsHjjcdJbxx dcfsHjjcdJbxx) {
		this.dcfsHjjcdJbxx = dcfsHjjcdJbxx;
	}
	
	public DcfsTsclTsjcsjJbxx getDcfsTsclTsjcsjJbxx() {
		return dcfsTsclTsjcsjJbxx;
	}
	public void setDcfsTsclTsjcsjJbxx(DcfsTsclTsjcsjJbxx dcfsTsclTsjcsjJbxx) {
		this.dcfsTsclTsjcsjJbxx = dcfsTsclTsjcsjJbxx;
	}
	
}
